
<%@ page language="java" contentType="text/html; charset=UTF-8"%>

<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title></title>
</head>

<body>
	<DIV align="center">
		<DIV>
			<ul>
				<logic:notPresent name="questionDepository">
					<font size="4" color="red">题库没有试题</font>
				</logic:notPresent>
			</ul>
		</DIV>
		<DIV>
			<logic:present name="questionDepository">
				<UL>
					<font size="4" color="blue">提示：选择左边的类型分类查看题库</font>
				</UL>
				<UL>
					<table border="1">
						<tr>
							<td>
								试题编号
							</td>
							<td>
								试题题目
							</td>
							<td>
								试题类型
							</td>
							<td>
								专业方向
							</td>
							<td>
								出题人
							</td>
							<td>
								出题时间
							</td>
							<td>
								相关操作
							</td>
						</tr>
						</logic:present>
						<logic:present name="questionDepository">
							<logic:iterate id="questionDepository" name="questionDepository">
								<tr>
									<td>
										<bean:write name="questionDepository" property="number" />
									</td>
									<td>
										<bean:write name="questionDepository" property="problem" />
									</td>
									<td>
										<bean:write name="questionDepository" property="questionType.name" />
									</td>
									<td>
										<logic:iterate id="subjects" name="questionDepository" property="subjectTypes">
											<bean:write name="subjects" property="name" />
										</logic:iterate>
									</td>
									<td>
										<bean:write name="questionDepository" property="questioner.username" />
									</td>
									<td>
										<bean:write name="questionDepository" property="makeTime" />
									</td>
									<td>
										<html:link page="">查看</html:link>
										<html:link page="">修改</html:link>
										<html:link page="">删除</html:link>
									</td>
								</tr>
							</logic:iterate>
					</table>
				</UL>
			</logic:present>
		</DIV>
		<DIV>
			<logic:present name="questionDepository">
				<UL>
					<a href="">第一页</a>
					<a href="">上一页</a>
					<a href="">下一页</a>
					<a href="">末一页</a> 当前第（）页，共（）页，共（）记录
				</UL>
			</logic:present>
		</DIV>
	</DIV>
</body>
</html:html>
